import request from "@/utils/request.js"

export default{
  //获取所有商品
  getAllGoods(data={}){
    return request({
      url:`/Shop/index`,
      method:"post",
      data:data,
      header:{
        "Content-Type":"application/json"
      }
    })
  },
  //获取推荐商品
  getRecommandGoods(data={}){
    return request({
      url:`/Index/initialData`,
      method:"post",
      data:data,
      header:{
        "Content-Type":"application/json"
      }
    })
  },
  //获取商品详情
  getGoodDetail(data={}){
    return request({
      url:`/ShopGoods/detail`,
      method:"post",
      data:data,
      header:{
        "Content-Type":"application/json"
      }
    })
  }
}